package me.ywd.hystrix.controller;

import me.ywd.hystrix.feign.ProviderFeign;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author Ye_Wenda
 * @Date 8/10/2017
 */
@RestController
public class HystrixFeignDemoController {

    @Autowired
    private ProviderFeign providerFeign;

    @GetMapping("hello")
    public String hello() {
        return providerFeign.service();
    }
}
